package luckEntity

type LuckLotteryRecord struct {
	ID          int64  `json:"id" gorm:"column:id" form:"id"`                               // 自增ID
	Uid         int64  `json:"uid" gorm:"column:uid" form:"uid"`                            // 用户uid
	LotteryId   int64  `json:"lottery_id" gorm:"column:lottery_id" form:"lottery_id"`       // 活动id
	PrizeId     int64  `json:"prize_id" gorm:"column:prize_id" form:"prize_id"`             // 奖品id
	Type        int8   `json:"type" gorm:"column:type" form:"type"`                         // 奖品类型1：未中奖2：积分3:余额4：红包5:优惠券6：站内商品7：等级经验8：用户等级 9：svip天数
	IsReceive   int8   `json:"is_receive" gorm:"column:is_receive" form:"is_receive"`       // 是否领取
	ReceiveTime int64  `json:"receive_time" gorm:"column:receive_time" form:"receive_time"` // 领取时间
	ReceiveInfo string `json:"receive_info" gorm:"column:receive_info" form:"receive_info"` // 收获地址、备注等
	IsDeliver   int8   `json:"is_deliver" gorm:"column:is_deliver" form:"is_deliver"`       // 是否发货
	DeliverTime int64  `json:"deliver_time" gorm:"column:deliver_time" form:"deliver_time"` // 发货处理时间
	DeliverInfo string `json:"deliver_info" gorm:"column:deliver_info" form:"deliver_info"` // 发货单号、备注等
	AddTime     int64  `json:"add_time" gorm:"column:add_time" form:"add_time"`             // 添加时间
}

// TableName 表名称
func (*LuckLotteryRecord) TableName() string {
	return "eb_luck_lottery_record"
}
